package com.hospital.ssm.service;

import com.hospital.ssm.model.Medicine;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author King
 * @create 2021-01-26-11:39
 * 药品实现类的接口
 */
public interface MedicineService {
    // 查询全部药品
    List<Medicine> queryAll() throws Exception;
    // 添加数据
    int addMedicine(Medicine medicine) throws Exception;
    // 根据药品id下架(删除)药品
    int delMedicine(@Param("mId") Integer mId) throws Exception;
    // 根据药品id 进行修改
    int updMedicine(@Param("medicine") Medicine medicine) throws Exception;
}
